package com.example.demo.service.impl;


import com.alipay.api.AlipayApiException;
import com.example.demo.entity.AlipayBean;
import com.example.demo.service.PayService;
import com.example.demo.utils.AlipayUtil;
import org.springframework.stereotype.Service;

/**
 * @Author kalista
 * @Description
 * @Date 2021/2/18  10:26
 **/
@Service
public class PayServiceImpl implements PayService {
    @Override
    public String aliPay(AlipayBean alipayBean) throws AlipayApiException {
        return AlipayUtil.connect(alipayBean);
    }
}
